﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Teriri.File.Server.Filter;
using TouchSocket.Dmtp.Rpc;
using TouchSocket.Rpc;

namespace Teriri.File.Server.Service
{
    [ServiceFilterAttribute]
    public class AuthService : RpcServer
    {
        [Description("登录")]
        [DmtpRpc("Login")]
        public bool Login(string account, string password)
        {
            if (account == "123" && password == "abc")
            {
                return true;
            }
            return false;
        }
    }
}
